<%-- 
    Document   : ContentFullView
    Created on : Apr 26, 2010, 9:44:45 PM
    Author     : vasi
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.lang.*"%>
<%@page import="java.util.*"%>
<%@page import="entities.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Content View</title>
        <script src="<% out.print(request.getContextPath()); %>/js/jquery.js" type="text/javascript"></script>
        <script src="<% out.print(request.getContextPath()); %>/js/jquery.form.js" type="text/javascript"></script>
        <script src="<% out.print(request.getContextPath()); %>/js/ajaxrequest.js" type="text/javascript"></script>
        <script src="<% out.print(request.getContextPath()); %>/js/ContentFullView.js" type="text/javascript"></script>
    </head>
    <body>
        <%ContentEntity content = (ContentEntity)request.getAttribute("content"); %>
        <h1><% out.println(content.getTitle()); %></h1>
        <div>
            <p><% out.println(content.getBody()); %></p>
            <div id="comment_form_wrapper">
                <a id="comment_add_title" href="<% out.print(request.getContextPath()); %>/#">View comments</a>
                <div id="comment_form" style="display: none;">
                    <jsp:include page="fragments/CommentsList.jsp" />
                </div>
            </div>
        </div>
    </body>
</html>
